<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=, initial-scale=1.0">
    <title>Document</title>
    <style>
         .top{
            overflow: hidden;
         }
        a {
            text-decoration: none;
        }

        .one {
            float: left;
        }

        .two {
            float: right;
        }

        .father {
            width: 1200px;
            height: 200px;
            margin: 10px auto;
            border: 1px solid #000;
        }

        .son {
            width: 200px;
            height: 200px;
            float: right;
            border-radius: 50%;
            text-align: center;
            line-height: 200px;
            background-color: pink;
            transform: scale(50%);
            transition: all 3s;

        }

        .son span {
            font-size: 30px;
            font-weight: 700;
            color: darkgreen;
        }

        .son:target {
            transform: scale(100%) translate(-1000px) rotate(720deg);
            background-color: aquamarine;
        }

        .son_1{
            width: 200px;
            height: 200px;
            border-radius: 50%;
            text-align: center;
            line-height: 200px;
            transform: scale(50%);
            transition: all 3s;
            background-color: aquamarine;
        }

        .son_1 span {
            font-size: 30px;
            font-weight: 700;
            color: darkgreen;
        }

        .son_1:target {
            transform: scale(100%) translate(1000px) rotate(720deg);
            background-color: pink;
        }
    </style>
</head>

<body>
    <div class="top">
        <a href="#liu1" class="one">转起来</a>
        <a href="#" class="two">退回去</a>
    </div>
    <div class="father">
        <div class="son" id="liu">
            <span>刘开恒</span>
        </div>
    </div>

    <div class="father second">
        <div class="son_1" id="liu1">
            <span>刘开恒</span>
        </div>
    </div>
</body>

</html>